package com.moneywelcome.investfacade;



import com.moneywelcome.orderfacade.dto.CommentDto;
import com.moneywelcome.orderfacade.dto.ReplyDto;
import com.moneywelcome.orderfacade.vo.CommentVo;
import com.moneywelcome.orderfacade.vo.ReplyVo;
import com.moneywelcome.results.PageResult;
import com.moneywelcome.results.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
        contextId="investDiscussApi",//服务名字
        value = "invest" // 区分不同client
)
public interface InvestDiscussApi {
    @PostMapping("loadComment")
    Result<PageResult<CommentDto>> loadComment(@RequestParam("goldId") String goldId);
    @PostMapping("comment")
    Result<CommentDto> makeComment(@RequestBody CommentVo commentVo);
    @PostMapping("reply")
    Result<ReplyDto> makeReply(@RequestBody ReplyVo replyVo);

}
